const saveAreaInfo = {
    state: {
      saveApiInfo: {
        agingDesignType: '0',
        appId: "10518",
        appkey: "",
        fileName: '',
        testResult: '',
        text: '{"publish":{},"stash":{"disable":false,"areas":[]}}',
        url: ""
      }
    },
    mutations: {
      setText: (state, areaItem) => {
        let tempText = JSON.parse(state.saveApiInfo.text)
        console.log('16',tempText);
        tempText.stash.areas.push(areaItem)
        console.log(tempText);
        state.saveApiInfo.text = JSON.stringify(tempText)
      },
      setfileName: (state, fileName) => {
        state.saveApiInfo.fileName = fileName
      },
      setUrl: (state, url) => {
        state.saveApiInfo.url = url
      }
    },
    actions: {
    }
  }

  export default saveAreaInfo